package com.yazi.mxz.gather.entity.http;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;


/**
 * 俊哥商场分页查询响应结果
 * <br/>http://www.jgmall.cn/team/goods.php?csyzg=1&page=118，结构样板(一个ul中有多个li,一个li一个商品)<br/>
 * <br/>&lt;ul>
 * <br/>　&lt;li>
 * <br/>　　&lt;a href="/team.php?id=1766"> &lt;img src="http://shop.jgmall.cn/static/team/2013/1029/13830099895640_index.jpg" alt="596ml 娃哈哈纯净水" /> &lt;/a>
 * <br/>　　&lt;div class="showother">
 * <br/>　　　&lt;p class="good-title">
 * <br/>　　　　&lt;b>596ml 娃哈哈纯净水&lt;/b>
 * <br/>　　　&lt;/p>
 * <br/>　　　&lt;p class="theprice">
 * <br/>　　　　&lt;strong>&lt;span class="money">价格：¥20&lt;/span> &lt;/strong>&nbsp;&nbsp;市场价：&lt;span class="old">¥20&lt;/span>
 * <br/>　　　&lt;/p>
 * <br/>　　　&lt;p class="good-title">&lt;b>6902083904630&lt;/b>&lt;/p>
 * <br/>　　　&lt;p class="good-title">&lt;b>15瓶/件&lt;/b>&lt;/p>
 * <br/>　　　&lt;p class="buy-quantity" style=" float:right">
 * <br/>　　　　&lt;a href="/team.php?id=1766" rel="nofollow"> &lt;img src="http://shop.jgmall.cn/static/css/i/buy_shop1.jpg" alt="" /> &lt;/a>
 * <br/>　　　&lt;/p>
 * <br/>　　&lt;/div>
 * <br/>　&lt;/li>
 * <br/>&lt;/ul>
 * 
 * @author mo_yq5
 * @date 2015-8-10
 */
@JsonRootName("ul")
public class JgmallResBody {
	
	@JacksonXmlElementWrapper(useWrapping = false)
	@JacksonXmlProperty(localName="li")
	List<Li> lis;
	
	public static class Li {
		A a;
		Img img;
		Div div;
		public A getA() {
			return a;
		}
		public void setA(A a) {
			this.a = a;
		}
		public Div getDiv() {
			return div;
		}
		public void setDiv(Div div) {
			this.div = div;
		}
		public Img getImg() {
			return img;
		}
		public void setImg(Img img) {
			this.img = img;
		}

	}
	
	public static class A {
		@JacksonXmlProperty(isAttribute=true)
		String href;// 详情地址
		Img img;
		public String getHref() {
			return href;
		}
		public void setHref(String href) {
			this.href = href;
		}
		public Img getImg() {
			return img;
		}
		public void setImg(Img img) {
			this.img = img;
		}

	}
	public static class Img {
		@JacksonXmlProperty(isAttribute=true)
		String src;// 图片路径

		public String getSrc() {
			return src;
		}

		public void setSrc(String src) {
			this.src = src;
		}
	}
	
	public static class Div {
		@JacksonXmlElementWrapper(useWrapping = false)
		@JacksonXmlProperty(localName="p")
		List<P> ps;

		public List<P> getPs() {
			return ps;
		}

		public void setPs(List<P> ps) {
			this.ps = ps;
		}
	}
	public static class P {
		B b;
		Strong strong;
		Span span;
		public B getB() {
			return b;
		}
		public void setB(B b) {
			this.b = b;
		}
		public Strong getStrong() {
			return strong;
		}
		public void setStrong(Strong strong) {
			this.strong = strong;
		}
		public Span getSpan() {
			return span;
		}
		public void setSpan(Span span) {
			this.span = span;
		}
	}
	public static class B {
		@JacksonXmlText
		String text;// 商品名称

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}
	}
	public static class Strong {
		Span span;

		public Span getSpan() {
			return span;
		}

		public void setSpan(Span span) {
			this.span = span;
		}
	}
	public static class Span {
		@JacksonXmlText
		String text;// 价格/市场价

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}
	}
	public List<Li> getLis() {
		return lis;
	}
	public void setLis(List<Li> lis) {
		this.lis = lis;
	}

}
